import request from '@/utils/request'

// 查询酒店历史价格表列表
export function listRoomHistory(query) {
  return request({
    url: '/hotel/roomHistory/list',
    method: 'get',
    params: query
  })
}

// 查询酒店历史价格表详细
export function getRoomHistory(id) {
  return request({
    url: '/hotel/roomHistory/' + id,
    method: 'get'
  })
}

// 新增酒店历史价格表
export function addRoomHistory(data) {
  return request({
    url: '/hotel/roomHistory',
    method: 'post',
    data: data
  })
}

// 修改酒店历史价格表
export function updateRoomHistory(data) {
  return request({
    url: '/hotel/roomHistory',
    method: 'put',
    data: data
  })
}

// 删除酒店历史价格表
export function delRoomHistory(id) {
  return request({
    url: '/hotel/roomHistory/' + id,
    method: 'delete'
  })
}
